#!/bin/bash

echo "----------start build----------"
npm run build
tar -czf dist.tar.gz dist
echo "----------scp dist.tar.gz to server----------"
scp dist.tar.gz root@10.2.242.25:/usr/local/xty/visual
rm -rf dist.tar.gz
rm -rf dist